<!-- 如果一个元素要浮动，那么它的祖先元素一定要有高度。

有高度的盒子，才能关住浮动。（记住这句过来人的经验之语）

只要浮动在一个有高度的盒子中，那么这个浮动就不会影响后面的浮动元素。所以就是清除浮动带来的影响了。 -->


<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>

	<style type="text/css">
      *{
         margin: 0;
         padding: 0;
      }

      .header{
         width: 970px;
         height: 103px;
         /*居中。这个语句的意思是：居中：*/
         margin: 0 auto;
      }
      .header .logo {
         float: left;
         width: 277px;
         height: 103px;
         background-color: red;
      }
      .header .language {
         float: right;
         width: 137px;
         height: 49px;
         background-color: green;
         margin-bottom: 8px;
      }
      .header .nav {
         float: right;
         width: 679px;
         height: 46px;
         background-color: green;
      }
    
		.content{
			width: 970px;
			height: 435px;
			/*居中，这个语句今天没讲，你照抄，就是居中：*/
			margin: 0 auto;
			margin-top: 10px;
		}
		.content .banner{
			float: left;
			width: 310px;
			height: 435px;
			background-color: gold;
			margin-right: 10px;
		}
		.content .rightPart{
			float: left;
			width: 650px;
			height: 435px;
		}

    .content .rightPart .main{
			width: 650px;
			height: 400px;
			margin-bottom: 10px;
		}
		.content .rightPart .links{
			width: 650px;
			height: 25px;
			background-color: blue;
		}

    .content .rightPart .main .news{
			float: left;
			width: 450px;
			height: 400px;
		}
		.content .rightPart .main .hotpic{
			float: left;
			width: 190px;
			height: 400px;
			background-color: purple;
			margin-left: 10px;
		}

      .content .rightPart .main .news .news1{
         width: 450px;
         height: 240px;
         margin-bottom: 10px;
          background-color: skyblue;
          
      }

      .content .rightPart .main .news .news2 {
          width: 450px;
         height: 110px;
         background-color: skyblue;
         margin-bottom: 10px;
      }


      .content .rightPart .main .news .news3 {
          width: 450px;
         height: 30px;
         background-color: skyblue;
         margin-bottom: 10px;
      }

	</style>

 </head>

 <body>
	  	<!-- 头部 -->
	<div class="header">
		<div class="logo">logo</div>
		<div class="language">语言选择</div>
		<div class="nav">导航条</div>
	</div>

	<!-- 主要内容 -->
	<div class="content">
		<div class="banner">大广告</div>
		<div class="rightPart">
			<div class="main">
				<div class="news">
					<div class="news1"></div>
					<div class="news2"></div>
					<div class="news3"></div>
				</div>
				<div class="hotpic"></div>
			</div>
			<div class="links"></div>
		</div>
	</div>

	<!-- 页尾 -->
	<div class="footer"></div>
 </body>

</html>

